package com.hello.vo;

import com.hello.entity.Comments;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "朋友圈帖子的数据格式")
public class PostVO implements Serializable {
    @ApiModelProperty("发帖用户id")
    private Long hostId;
    @ApiModelProperty("发帖顺序")
    private Integer postOrder;
    @ApiModelProperty("用户昵称")
    private String userName;
    @ApiModelProperty("用户头像")
    private String headshotUrl;
    @ApiModelProperty("发布时间")
    private LocalDateTime postTime;
    @ApiModelProperty("内容")
    private String text;
    @ApiModelProperty("图片")
    private String imageUrl;
    @ApiModelProperty("是否点赞")
    private boolean liked;
    @ApiModelProperty("点赞数")
    private Long likes;
    @ApiModelProperty("评论数")
    private Long comments;
    @ApiModelProperty("转发数")
    private Integer shares;
    @ApiModelProperty("是否关注")
    private boolean followed;


}
